﻿namespace DataAccess
{
    /// <summary>
    /// Factory class to create the data access objects
    /// </summary>
    public static class Factory
    {
        public static DatabaseTransaction Transaction()
        {
            return new DatabaseTransaction();
        }

        public static DatabaseCommand Command()
        {
            return new DatabaseCommand();
        }

        public static DatabaseParameter Parameter(string name)
        {
            return new DatabaseParameter
            {
                _Name = name
            };
        }
    }
}
